-- GENERATED SPELL FOR [Black Guard Sentry] --


function spell0_10394(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10394', 682, 1)
end

function spell1_10394(pUnit, Event) --@Shadow Shock,n/a--
pUnit:FullCastSpellOnTarget(17439,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10394', 636, 1)
end

function Sorts_10394(pUnit, Event)
local choix_sorts_10394 = math.random(0, 1)
if choix_sorts_10394 == 0 then
pUnit:RegisterEvent('spell0_10394', 1, 1)
end
if choix_sorts_10394 == 1 then
pUnit:RegisterEvent('spell1_10394', 1, 1)
end
end

function mob10394_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10394', math.random(1500, 3000), 1)
end

function mob10394_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10394_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10394_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10394, 1, 'mob10394_Action')
RegisterUnitEvent(10394, 2, 'mob10394_Leave')
RegisterUnitEvent(10394, 3, 'mob10394_Kill')
RegisterUnitEvent(10394, 4, 'mob10394_Die')
